package top.wardyan.wmes.rfid.vo;

public class Empl {

	/** 员工ID **/
	Integer id;
	/** 员工工号 **/
	String code;
	/** 姓名 **/
	String name;
	/** 职务 **/
	String post;
	/** 是否在职 true在职， 否则离职 **/
	Boolean active;
	
	/** 所在部门 **/
	Dept dept;

	public Integer getId() {
		return id;
	}

	public String getCode() {
		return code;
	}

	public String getName() {
		return name;
	}

	public String getPost() {
		return post;
	}

	public Dept getDept() {
		return dept;
	}
	public String getDeptName() {
		return dept != null ? dept.getName() : "";
	}

	public Empl setId(Integer id) {
		this.id = id;
		return this;
	}

	public Empl setCode(String code) {
		this.code = code;
		return this;
	}

	public Empl setName(String name) {
		this.name = name;
		return this;
	}

	public Empl setPost(String post) {
		this.post = post;
		return this;
	}

	public Empl setDept(Dept dept) {
		this.dept = dept;
		return this;
	}
	
	
}
